package orm.infrastructure.interfaces;

import java.util.Dictionary;

/**
 * Created with IntelliJ IDEA.
 * User: Awake
 * Date: 01.05.12
 * Time: 18:24
 * To change this template use File | Settings | File Templates.
 */
public interface IMockConverter {

    /**
     * Creates dictionary from existing object
     * @param mock  input object
     * @return HashTable of couples key/value of fields of mock
     */

    public Dictionary<String, Object> toDictionary(IValidable mock);

    /**
     * Creates object from dictionary
     * @param dictionary  HashTable of couples key/value
     * @return new object
     */

    public IValidable toObject(Dictionary<String, Object> dictionary);

}
